a8f0b7ac3a9a8c05ed4c7e8b7eefc5b154a08d77,zktest/src/org/zkoss/zktest/bind/issue/B00878WrongValueException2.java,TimeConstraint,validate,#Component#Object#,93

Before Change


		public void validate(Component comp, Object value) throws WrongValueException {
			Date date = (Date)value;
			Calendar c = Calendar.getInstance();
			c.setTime(date);
			int h = c.get(Calendar.HOUR_OF_DAY);
			if(h < 12){
				throw new WrongValueException(comp,"Hours must large than 12, but is "+h);

After Change


		public void validate(Component comp, Object value) throws WrongValueException {
			Date date = (Date)value;
			int h = -1;
			if(date!=null){
				Calendar c = Calendar.getInstance();
				c.setTime(date);
				h = c.get(Calendar.HOUR_OF_DAY);
			}
			if(h < 12){